#@edit()
#define content()
<div class="box">
    <div class="box-header">
        <ul class="nav nav-tabs">
            <li><a href="/user/profile">个人资料</a></li>
            <li class="active"><a href="/user/password_edit">密码设置</a></li>
        </ul>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div class="row">
            <div class="col-md-6">
                <!-- form start -->
                <form action="/user/doSavePassword" method="post" class="form-horizontal">
                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">新密码</label>
                            <div class="col-sm-10">
                                <div class="input-group">
                                    <span class="xsui-password-input"><input type="password" name="password" class="form-control input-sm" placeholder="新密码" required="required" /></span>
                                    <span class="input-group-btn">
                                        <button class="btn btn-default btn-sm xsui-btn-show-password" type="button" title="显示密码"><span class="glyphicon glyphicon-eye-open"></span></button>
                                    </span>
                                </div>                
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">再次输入密码</label>
                            <div class="col-sm-10">
                                <div class="input-group">
                                    <span class="xsui-password-input"><input type="password" name="repassword" class="form-control input-sm" placeholder="再次输入密码" required="required" /></span>
                                    <span class="input-group-btn">
                                        <button class="btn btn-default btn-sm xsui-btn-show-password1" type="button" title="显示密码"><span class="glyphicon glyphicon-eye-open"></span></button>
                                    </span>
                                </div>                
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
                        <button type="submit" class="btn btn-primary pull-right">保存</button>
                    </div>
                    <!-- /.box-footer -->
                    <input type="hidden" name="user_id" value="#(user_id)"/>
                </form>
            </div>
        </div>
    </div>
    #end
    #define script_after()
    <script>
        xsApp.xsfnTogglePassword({placeholder: '新密码'});
        xsApp.xsfnTogglePassword({selector: '.xsui-btn-show-password1', name: 'repassword', placeholder: '再次输入密码'});
    </script>
    #end